package com.doit.demo01;

import java.io.*;

public class IO_Close {

        public static void close(Reader in, Writer out){

            try {
                if(in!=null){
                    in.close();
                }

            } catch (IOException e) {
                e.printStackTrace();
            }
            try {
                if(out!= null){
                    out.close();
                }

            } catch (IOException e) {
                e.printStackTrace();
            }
        }

}
